package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.EnrollTeamMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 招生战队成员 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2023-02-10
 */
public interface EnrollTeamMemberMapper extends BaseMapper<EnrollTeamMember> {
    @Select("SELECT enroll_team_member.*,staff.`name` as staffName FROM enroll_team_member LEFT JOIN staff ON enroll_team_member.teacher_id = staff.id ${ew.customSqlSegment} ")
    List<EnrollTeamMember> getByTeamIdEnrollTeamMembers(@Param(Constants.WRAPPER) Wrapper wrapper);

}
